<?php
class Pages extends CI_Controller {

	function __construct()
	{	   
	   parent::__construct();	
	   //$this->load->model('counting_model');
	}
	public function view($page = 'login')
	{
		//kiem tra cookie, session
		//if($this->session->userdata('ss_username') == FALSE)
		//{
			if ( ! file_exists('application/views/template/'.$page.'.php'))
			{
				// Whoops, we don't have a page for that!
				show_404();
			}
			
			//$data['title'] = ucfirst($page); // Capitalize the first letter
			//$data['msg'] = '';
			//$this->load->view('template/header', $data);			
			//if($page == 'home')	{
			//	echo "la nhi";
			//	$this->load->view('templates/sidebar');
			//	$this->load->view('templates/menutop');
			//}		
			$this->load->view('template/'.$page,'html');
			//$this->load->view('templates/footer', $data);
		//}
	}
}